﻿using System;
using System.Security;
using Microsoft.SharePoint.UserCode;

[assembly: AllowPartiallyTrustedCallers()]
namespace SharePointLoggerArgs
{
    [Serializable]
    public class TraceProxyArgs : SPProxyOperationArgs
    {
        public enum Severity
        {
            Verbose,
            Information,
            Warning,
            Error,
            Failure
        }

        public string CorrelationID { get; set; }
        public string AssemblyName { get; set; }
        public string DisplayName { get; set; }
        public string MessageType { get; set; }
        public string Message { get; set; }

        public string TraceProxyOpsAssemblyName
        {
            get { return "SharePointLoggerOps, Version=1.0.0.0, Culture=neutral, PublicKeyToken=43bebc4f85a5528b"; }
        }
        public string TraceProxyOpsTypeName
        {
            get { return "SharePointLoggerOps.TraceProxyOps"; }
        }

        public TraceProxyArgs() { }
        public TraceProxyArgs(string CorrelationId, string AssemblyName, string DisplayName, string MessageType, string Message)
        {

            this.CorrelationID = CorrelationID;
            this.AssemblyName = AssemblyName;
            this.DisplayName = DisplayName;
            this.MessageType = MessageType;
            this.Message = Message;
        }
    }
}
